package com.stedu.service;

import com.stedu.bean.Admin;
import com.stedu.exception.SteduException;

import java.util.List;
import java.util.Map;

public interface AdminService {
    Admin login(String username, String password) throws SteduException;
    List<Map<String, Object>> selectTop5DnameAndCount();

    Admin selectByUsername(String username);

    boolean update(Admin admin) throws SteduException;
    boolean Aupdate(Admin admin) throws SteduException;


    Admin selectById(Integer id);
    List<Map<String, Object>> selectTop5RnameAndCount();

    boolean insertAdmin(Admin a);
    // 新添加的方法，用于校验用户名是否存在
    boolean checkUsernameExist(Admin admin);
    //删除员工跟登录的关联关系
    boolean deleteByRid(Integer rid);

}
